#include "AerobicExercise.h"
#include "Device.h"

AerobicExercise::AerobicExercise(const Device& d,int m,int h) : Exercise(d)
{
	minutes = m;
	heartBeat = h;
}

ostream & operator<<(ostream & os,const AerobicExercise & E) //#WD[3] RonnyR 12.12
{
os<<(Exercise&)E;
os<<"Number of Minutes: "<<E.minutes<<endl;
os<<"Heart Beat: "<<E.heartBeat<<endl;
return os;
}


Exercise * AerobicExercise::Clone() const
{
return new AerobicExercise(*this);
}
void AerobicExercise::PrintExercise(ostream &os,int type)const
{
if (type==AEROBIC_CHOOSE || type==ALL_CHOOSE)
	cout<<*this;
}

